package fit.hrkj.eureka.provider;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 为服务端的提供者提供一个服务端的接口
 *
 * @author 刘二朋
 * @date 2020-12-30 15:38
 */
@RestController
public class HelloController {


    @RequestMapping("hello/{name}")
    public String sayHello(@PathVariable String name) {

//        返回一个JSON格式的字符串
        return "Hello : " + name + " ! ";

    }


}
